public class code7 {
    public static int max(int x,int y){
        int tmp=x>y?x:y;
        return tmp;
    }
    public static int max(int x,int y,int z){
        int max=x;
        if(max<y)
            max=y;
        else if(max<z)
            max=z;
        return max;
    }
    public static void main(String[] args) {
        System.out.println(max(1,2));
        System.out.println(max(11,7,23));
    }
}
